cmake_minimum_required(VERSION 3.1)

project(HelloSLAM)

set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")

add_executable(${PROJECT_NAME} useHello.cpp)

# hello dependencies
add_subdirectory(./hello)
aux_source_directory(./ SOURCE_DIR)
target_link_libraries(${PROJECT_NAME} hello)

target_link_libraries(${PROJECT_NAME} /usr/local/lib/libglog.so)
target_link_libraries(${PROJECT_NAME} /usr/local/lib/libgtest.a)
target_link_libraries(${PROJECT_NAME} /usr/local/lib/libgflags.so)

# add_executable(testHello testHello.cc)

# target_link_libraries(testHello hello)

# # hello dependencies
# target_link_libraries(testHello /usr/local/lib/libglog.so)
# target_link_libraries(testHello /usr/local/lib/libgtest.a)
# target_link_libraries(testHello /usr/local/lib/libgflags.so)


SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
